import request from '@/utils/request'

export function getNeedKnow() {
  return request({
    url: '/api/data/get_need_know/',
    method: 'get'
  })
}

export function setNeedKnow(data) {
  return request({
    url: '/api/data/set_need_know/',
    method: 'post',
    data: data
  })
}

export function getImportantAreaWarn() {
  return request({
    url: '/api/data/get_important_area_warn/',
    method: 'get'
  })
}

export function setImportantAreaWarn(data) {
  return request({
    url: '/api/data/set_important_area_warn/',
    method: 'post',
    data: data
  })
}

// 获取通知内容
export function getNotify() {
  return request({
    url: '/api/data/get_notify/',
    method: 'get'
  })
}

// 设置通知内容
export function setNotify(data) {
  return request({
    url: '/api/data/set_notify/',
    method: 'post',
    data: data
  })
}

// 进行中高风险地区爬虫
export function goSpider(data) {
  return request({
    url: '/api/high_risk_area_spider/go_spider/',
    method: 'post',
    data: data
  })
}

// 获取中高风险地区爬虫数据
export function getSpider(data) {
  return request({
    url: '/api/high_risk_area_spider/',
    method: 'get',
    params: data
  })
}
